home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 14 / Developer Source Volume 14 (I-MODE Publications, Inc.)(1999).iso / ibmsj / 871 / 1p355.gif < prev   
Graphics Interchange Format  |  1998-12-28  |  69KB  |  544x443  |  4-bit (16 colors)
Labels: text | screenshot | menu
OCR: POLICY DATABASE The defaul: JDK 1.2 access control, subsystem implementation uses a policy database To gain an appreciation, ci these capabilihes, a low examples are giveri (e.g ., a flat file) to describe socess control Example': Applets from wwwha NominallyWidgets.com; signied by a policies. Each grant entry- contains two parts; fa CodeSource and a I st of Permissions. digital certificate called barryis Certificate can read files in directoryy Jimp and white files in diectory imw koved on the local disk drive: The Code Source is also comprised of two parts: Note the wild card ","as the last character of the first quoted argunient Many permissionis support the wild card as the lost character of the . Code base URL indicating where the first argument. classes are residing. It omitted, the code can be from any source · Dig tal certificate used to sign the classes/JAR file. If omitted AccessController will not check whether the code is signed or not Example 2: Servlets tom any location, digitally signed or unsigned; The Permissions consist of one or more entries, are allowed to read pomo sdc ional system properties java version each of which is comprised of four parts; and javaivendor: " The fully qualified name of the permission. grant {. class (includes the package name), permission' java dok Profontypuimiscon viveversion = react e.g . java ut I.PropertyPermission, · The first quoted argument for the permission constructor; e.g ., "java version" ·The second quoted argument is an optional Examble 3 :Progitims signed by Lantys Centrate ar allowed to execute a proctam called LocalStatus on the local operating system, modifier, e.g. "read". `The last argument is an option al name that regardless of where the class ales originated .. has been assigned to' a digital certificate for the permission class; e.g ., the permission greit sighedBy 'LangsCertificate" t class (see the fest bullet above) was loaded over the network and was signed with a digital certificate